import java.util.Scanner;

public class Demo06 {

  public static void main(String[] args) {
    // for (int i = 0; i < 200;) {
    //   System.out.print(i + " ");
    //   if (i % 3 == 0) System.out.print("three ");
    //   if (i % 5 == 0) System.out.print("five ");
    //   if (i % 7 == 0) System.out.print("seven ");
    //   System.out.println();
    //   i++;
    // }
    int num1 = 10, num2 = 20;
    int min = num1>num2?num2:num1;
    int max = num1>num2?num1:num2;
    int maxGongYueShu = 0;
    int minGongBeiShu = 0;
    for (int i = min;i>=0;i--) {
      System.out.println("1111:" + i);
      if (num1 % i == 0 && num2 % i == 0) {
         
        maxGongYueShu = i;
        break;
      }
    }
    for (int i = max;i<=min*max;i++) {
        System.out.println("2222:" + i);
      if (i % min == 0 && i % max == 0) {
        minGongBeiShu = i;
        break;
      }
    }
     System.out.println("maxGongYueShu:" + maxGongYueShu);
     System.out.println("minGongBeiShu:" + minGongBeiShu);
  }
}
